<template>
	<view class="page">
		<view class="header">
			<view class="iconBox">
				<view class="icon">
					<img src="@/static/Icon/tiXianZhong.png" style="width: 100%;height: 100%;">
				</view>
				<view class="iconTxt">
					提现中
				</view>
			</view>
			<view class="infoBox">
				<view class="info">
					提现单号：{{financeCash.orderSn}}
				</view>
				<view class="info">
					提现金额：￥ {{financeCash.money}}
				</view>
				<view class="info">
					提现时间： {{financeCash.createDate}}
				</view>
			</view>
		</view>
		<view class="footer">
			<view class="line">
				<u-time-line>

					<u-time-line-item>
						<!-- 此处自定义了左边内容，用一个图标替代 -->
						<template v-slot:node>
							<view class="u-node" style="background: #FFA12A;">
								<!-- 此处为uView的icon组件 -->
								<u-icon name="pushpin-fill" color="#fff" :size="24"></u-icon>
							</view>
						</template>
						<template v-slot:content>
							<view>
								<view class="u-order-title">等待系统审核</view>
								<view class="u-order-time">{{financeCash.createDate}}</view>
							</view>
						</template>
					</u-time-line-item>


					<u-time-line-item>
						<!-- 此处自定义了左边内容，用一个图标替代 -->
						<template v-slot:node>
							<view class="u-node" style="background: #3975EA;">
								<!-- 此处为uView的icon组件 -->
								<u-icon name="pushpin-fill" color="#fff" :size="24"></u-icon>
							</view>
						</template>
						<template v-slot:content>
							<view>
								<view class="u-order-title">提交申请</view>
								<view class="u-order-time">{{financeCash.createDate}}</view>
							</view>
						</template>
					</u-time-line-item>

				</u-time-line>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				financeCash: {},
				id: 0
			}
		},

		onLoad(options) {
			this.id = options.id
		},
		onShow() {
			this.getFinanceCash()
		},
		methods: {
			getFinanceCash() {
				this.$axios.request(`${this.$api.getFinanceCash}/${this.id}`, "GET").then((val) => {
					this.financeCash = val.data
				})
			}


		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100vh;
		background-color: #F3F4F8;
		overflow-y: hidden;
	}

	.header {
		overflow-y: auto;
		width: 100%;
		/* height: 325rpx; */
		min-height: 400rpx;
		background-color: #fff;
	}

	.iconBox {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 126rpx;
		margin-top: 48rpx;
	}

	.icon {
		width: 164rpx;
		height: 126rpx;
	}

	.iconTxt {
		height: 40rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 400;
		line-height: 40rpx;
		color: #FF9C24;
		opacity: 1;
		margin-left: 48rpx;
	}

	/* 	.yuanYin {
		height: 40rpx;
		font-size: 28rpx;
		font-family: "PingFang SC";
		font-weight: 300;
		line-height: 40rpx;
		color: #333333;
		text-align: center;
		margin-top: 35rpx;
	}
	.shuoMing {
		margin-top: 21rpx;
		text-align: center;
		height: 33rpx;
		font-size: 24rpx;
		font-family: "PingFang SC";
		font-weight: 300;
		line-height: 33rpx;
		color: #333333;
	} */
	.footer {
		width: 100%;
		height: 100%;
		background-color: #fff;
		margin-top: 16rpx;
		padding: 0 32rpx;
		overflow-y: auto;
	}

	.infoBox {
		width: 427rpx;
		margin: 48rpx auto 0;
	}

	.info {
		font-size: 26rpx;
		font-family: "PingFang SC";
		font-weight: 300;
		color: #333333;
		margin-bottom: 10rpx;
	}

	.line {
		width: 560rpx;
		margin: 56rpx auto 0;
	}

	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}

	.u-order-title {
		font-size: 24rpx;
		font-family: "PingFang SC";
		font-weight: 400;
		color: #333333;
	}

	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 28rpx;
		margin-bottom: 6rpx;
	}

	.u-order-time {
		/* color: rgb(200, 200, 200);
			font-size: 26rpx; */
		font-size: 20rpx;
		font-family: "PingFang SC";
		font-weight: 300;
		color: #BBBBBB;
		margin-top: 15rpx;
	}

	u-time-line-item {
		margin-bottom: 50rpx;
	}
</style>
